﻿@model Test.Entities.Domain

				<div class="contentRegion">
					<div class="contentRegionFull">
						<div class="contentRegionHeader">New Website</div>
						<div class="contentRegionContainer">
							@using (Html.BeginForm()) {
								@Html.ValidationSummary(true)

								@Html.HiddenFor(model => model.Id)
								@Html.HiddenFor(model => model.ParentId)

								<div class="editor-label">
									@Html.LabelFor(model => model.HostName)
								</div>
								<div class="editor-field">
									@Html.EditorFor(model => model.HostName)
									@Html.ValidationMessageFor(model => model.HostName)
								</div>
		   
								<div class="editor-label">
									@Html.LabelFor(model => model.IpAddress)
								</div>
								<div class="editor-field">
									@Html.EditorFor(model => model.IpAddress)
									@Html.ValidationMessageFor(model => model.IpAddress)
								</div>
		   
								<div class="editor-label">
									@Html.LabelFor(model => model.Port)
								</div>
								<div class="editor-field">
									@Html.EditorFor(model => model.Port)
									@Html.ValidationMessageFor(model => model.Port)
								</div>
		   
								<div class="editor-field">
									@Html.CheckBoxFor(model => model.IsPrimary)
								</div>

								<p>
									<input type="submit" value="Save" />
								</p>
							}
							<div>
								<a class="btnCancel" href="#" title="Cancel">Cancel</a>
							</div>
						</div>
					</div>
				</div>